package com.winshare.saleAssistant.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel
public class AppCreateDTO {

    @NotBlank(message = "应用名称不能为空")
    @Length(min = 1,max = 20,message = "应用名称的长度在1到20之间")
    @ApiModelProperty(value = "应用名称")
    private String appName;

    @NotBlank(message = "图片地址不能为空")
    @Length(min = 1,max = 100,message = "图片地址的长度在1到100之间")
    @ApiModelProperty(value = "图片地址")
    private String imageUrl;

    @NotBlank(message = "app超链接地址地址不能为空")
    @Length(min = 1,max = 100,message = "app超链接地址的长度在1到100之间")
    @ApiModelProperty(value = "app超链接地址")
    private String appLink;

    @NotNull(message = "接入方式不能为空")
    @Range(min = 1, max = 3, message = "接入方式：1,内部;2,接入;3,外链")
    @ApiModelProperty(value = "接入方式:1,内部;2,接入;3,外链")
    private Integer accessModel;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    public AppCreateDTO() {
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getAppLink() {
        return appLink;
    }

    public void setAppLink(String appLink) {
        this.appLink = appLink;
    }

    public Integer getAccessModel() {
        return accessModel;
    }

    public void setAccessModel(Integer accessModel) {
        this.accessModel = accessModel;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
}
